<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"/> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>酒店信息发布平台</title>

<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/base.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/index.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/dialog.css" type="text/css" media="screen" />
<script src="${pageContext.request.contextPath}/common/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/jquery.artDialog.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/iframeTools.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/index.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/adminindex.js" type="text/javascript"></script>
</head>
<body onload="getcount();">
<div id="topbar">
<span id="time"></span>
		<div class="logotext">开元后台管理系统</div>
		<div class="toptext" style="height:35px;position:absolute;right:10px;">		
		<s:if test="#session.permit==1"><span>系统管理员:</span></s:if><s:else><span>管理员:</span></s:else><strong>${loginName}</strong>
		<a href="javascript:void(0);" onclick="parent.mnipotent({'linkurl':'findById.action?id=${adminId}','title':'修改个人信息','w':580,'h':330,'sucfun':editinfo});" title="个人信息">个人信息</a>
		<a href="javascript:void(0);" onclick="parent.mnipotent({'linkurl':'panel/admin/editpwd.jsp','title':'修改密码','w':580,'h':200,'sucfun':editpwd});" title="修改密码">修改密码</a>
		<a href="destorySession.action" title="安全退出">安全退出</a>			
		</div>	

</div>
<div id="leftpanel">
    <div id="nav_list">
    <div class="lefttab" id="adminmenu">
    <div>
		<ul>
			<s:if test="#session.permit==1">
			<li><div class="itemarea"><b class="bitarea"></b><a href="panel/hotel/hotelInfo/getHotel.action" target="mainiframe">酒店信息</a></div></li>
			<li><div class="itemarea"><b class="bitarea"></b><a href="panel/hotel/roomStyle/getRoomStyleListByPage.action" target="mainiframe">酒店客房</a></div></li>
			<li><div class="itemarea"><b class="bitarea"></b><a href="panel/hotel/hotelPic/getHotelPicListByPage.action" target="mainiframe">酒店图片</a></div></li>
			<li><div class="itemarea"><b class="bitarea"></b><a href="panel/hotel/bedType/getBedTypeListByPage.action" target="mainiframe">酒店床型</a></div></li>
			</s:if>
			<li><div class="itemarea"><b class="bitarea"></b><a href="panel/hotel/hotelOrder/getHotelOrderListByPage.action" target="mainiframe">酒店订单</a></div><span class="ordermsg"></span></li>
			<li><div class="itemarea"><b class="bitarea"></b><a href="panel/hotel/review/getHotelReviewListByPage.action" target="mainiframe">酒店点评</a></div><span class="reviewmsg"></span></li>
			<li><div class="itemarea"><b class="bitarea"></b><a href="panel/member/getMemberListByPage.action" target="mainiframe">会员列表</a></div></li>
 			<s:if test="#session.permit==1">
 			<li><div class="itemarea"><b class="bitarea"></b><a href="getAdminListByPage.action" target="mainiframe">管理员</a></div></li>
 			<li><div class="itemarea"><b class="bitarea"></b><a href="panel/hotel/hotelCount/getHotRoomListByPage.action" target="mainiframe">统计</a></div></li>
 			</s:if>
		</ul>
	</div>

</div></div>
</div>
<div id="main">
	<div id="topmenu">
		<span class="fl pagetitle"></span>
	</div>
	<iframe src="panel/tips.jsp" frameborder="0" width="100%" height="auto" scrolling="no" name="mainiframe" id="mainiframe"></iframe>
</div>
</body>
</html>
